//
// Created by 吴锐 on 2022/2/28.
//

#include "iostream"
#include "MyArray.hpp"

using namespace std;

void printIntArray(MyArray<int>& arr){
    for(int i = 0 ; i < arr.getSize() ; i++){
        cout << arr[i] << endl;
    }
}

void test01(){
    MyArray<int> arr1(5);

    for(int i = 0 ; i < 5 ; i++){
        arr1.pushBack(i);
    }

    cout << "arr1的输出为: " << endl;

    printIntArray(arr1);

    cout << "arr1的容量为: " << arr1.getCapacity() << endl;

    cout << "arr1的大小为: " << arr1.getSize() << endl;
//    MyArray<int> arr2(arr1);
//    MyArray<int> arr3(100);
//    arr3 = arr1;
}

int main(){
    test01();
    return 0;
}